package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao2.UserDao;
import com.victor.service.YhUsersService;

@Service
public class YhUsersServiceImpl implements YhUsersService {

	@Autowired
	private UserDao dao;

	@Override
	public boolean addExp(String userid ,int i) {
		return dao.addExp(userid,i) > 0 ? true : false;
	}

	@Override
	public List<Integer> getAgeList(String userid) {
		return dao.getAgeList(userid);
	}

}
